﻿project(QrcEditor)

find_package(Qt6 REQUIRED COMPONENTS  Widgets)

file(GLOB build_files_cpp CONFIGURE_DEPENDS "${CMAKE_CURRENT_LIST_DIR}/*.cpp")
file(GLOB build_files_h CONFIGURE_DEPENDS "${CMAKE_CURRENT_LIST_DIR}/*.h")
file(GLOB build_files_ui CONFIGURE_DEPENDS "${CMAKE_CURRENT_LIST_DIR}/*.ui")

#add_executable (QrcEditor  "main.cpp")
add_executable (QrcEditor  ${build_files_cpp} ${build_files_h} ${build_files_ui})

target_link_libraries(QrcEditor PRIVATE Qt6::Widgets)
#target_include_directories(QrcEditor PRIVATE "${CMAKE_CURRENT_LIST_DIR}/inc")

set_target_properties(QrcEditor PROPERTIES
    AUTOMOC ON
    AUTOUIC ON
    AUTORCC ON
)

